<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:set var="sub_grant_code"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>


<div class="t_bar">资金信息（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="zijin"
	cellspacing="1">
	<tr >
	<td align="right">投入总额：</td>
	<td colspan="5"><x:out select="$xmlData/data/budgets/input_total" /></td>
	</tr>
	<tr >
	<td align="right">其中：已投入金额：</td>
	<td><x:out select="$xmlData/data/budgets/already_input_total" /></td>
	<td align="right">新增研发投入：</td>
	<td><x:out select="$xmlData/data/budgets/add_research" /></td>
	<td align="right">申请金额：</td>
	<td><x:out select="$xmlData/data/budgets/apply_money" /></td>
	</tr>
	<tr >
	<td align="right">资金来源合计：</td>
	<td colspan="5"><x:out select="$xmlData/data/budgets/source_total" /></td>
	</tr>
	<tr >
	<td align="right">自有资金：</td>
	<td ><x:out select="$xmlData/data/budgets/own_fund" /></td>
	<td align="right">银行贷款：</td>
	<td ><x:out select="$xmlData/data/budgets/bank_fund" /></td>
	<td align="right">其他资金：</td>
	<td ><x:out select="$xmlData/data/budgets/other_fund" /></td>
	</tr>
	<tr >
	<td align="right">已获政府资金（国家）：</td>
	<td ><x:out select="$xmlData/data/budgets/country_fund" /></td>
	<td align="right">已获政府资金（省级）：</td>
	<td ><x:out select="$xmlData/data/budgets/provincial_fund" /></td>
	<td align="right">已获政府资金（市级）：</td>
	<td ><x:out select="$xmlData/data/budgets/city_fund" /></td>
	</tr>
	<tr >
	<td align="right">已获政府资金（区级）：</td>
	<td ><x:out select="$xmlData/data/budgets/area_fund" /></td>
	</tr>
	
</table>

<div class="t_bar">新增研发投入预算（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="yusuan"
	cellspacing="1">

	<tr class="t_tr">
		<td align="center" width="20%">支出科目</td>
		<td class="TblHead" align="center" width="20%">合计</td>
		<td class="TblHead" align="center"width="20%">${year-3 }</td>
		<td class="TblHead" align="center"width="20%">${year-2 }</td>
		<td class="TblHead" align="center"width="20%">${year-1 }</td>
	</tr>
	
	<tr align="center">
		<td align="left" style="padding-left:20px">合计</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[00]@invest_code" value="00" />
			<input type="hidden" name="budget/invest_detail/invest[00]/name" value="设备费" />
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">1、设备费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[01]@invest_code" value="01" />
			<input type="hidden" name="budget/invest_detail/invest[01]/name" value="设备费" />
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:40px">（1）购置设备费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[02]@invest_code" value="02" />
			<input type="hidden" name="budget/invest_detail/invest[02]/name" value="购置设备费" />
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:40px">（2）试制设备费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[03]@invest_code"  value="03"/>
			<input type="hidden" name="budget/invest_detail/invest[03]/name" value="试制设备费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:40px">（3）设备改造与租赁费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[04]@invest_code"  value="04"/>
			<input type="hidden" name="budget/invest_detail/invest[04]/name" value="设备改造与租赁费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">2、基本建设费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[05]@invest_code"  value="05"/>
			<input type="hidden" name="budget/invest_detail/invest[05]/name" value="基本建设费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">3、材料费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[06]@invest_code"  value="06"/>
			<input type="hidden" name="budget/invest_detail/invest[06]/name" value="材料费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">4、测试化验加工费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[07]@invest_code"  value="07"/>
			<input type="hidden" name="budget/invest_detail/invest[07]/name" value="测试化验加工费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">5、燃料动力费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[08]@invest_code"  value="08"/>
			<input type="hidden" name="budget/invest_detail/invest[08]/name" value="燃料动力费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">6、差旅费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[09]@invest_code"  value="09"/>
			<input type="hidden" name="budget/invest_detail/invest[09]/name" value="差旅费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">7、会议费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[10]@invest_code"  value="10"/>
			<input type="hidden" name="budget/invest_detail/invest[10]/name" value="会议费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">8、技术合作与交流费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[11]@invest_code"  value="11"/>
			<input type="hidden" name="budget/invest_detail/invest[11]/name" value="技术合作与交流费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_thisyear" />
		</td>
	</tr>
	<tr align="center" >
		<td align="left" style="padding-left:20px">9、出版费/文献/知识产权事务费</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[12]@invest_code"  value="12"/>
			<input type="hidden" name="budget/invest_detail/invest[12]/name" value="出版费/文献/知识产权事务费"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_thisyear" />
		</td>
	</tr>
	<tr align="center">
		<td align="left" style="padding-left:20px">10、人员费用</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[13]@invest_code"  value="13"/>
			<input type="hidden" name="budget/invest_detail/invest[13]/name" value="人员费用"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_thisyear" />
		</td>
	</tr>
	
	<tr align="center">
		<td align="left" style="padding-left:20px">11、管理费用</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[14]@invest_code"  value="14"/>
			<input type="hidden" name="budget/invest_detail/invest[14]/name" value="管理费用"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_thisyear" />
		</td>
	</tr>
	
	<tr align="center">
		<td align="left" style="padding-left:20px">12、其他费用</td>
		<td>
			<input type="hidden" name="budget/invest_detail/invest[15]@invest_code"  value="15"/>
			<input type="hidden" name="budget/invest_detail/invest[15]/name" value="其他费用"/>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_invest" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_allot" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_self" />
		</td>
		<td>
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_thisyear" />
		</td>
	</tr>
</table>
<br>	

<script type="text/javascript">
	$(function() {
		$("#zijin tr:even").addClass("li_1");
		$("#zijin tr:odd").addClass("li_2");
		$("#yusuan tr:even").addClass("li_1");
		$("#yusuan tr:odd").addClass("li_2");
	
	});


	
	
</script>


